﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Configuration;

public partial class index : System.Web.UI.Page
{
    public static string connstr = System.Configuration.ConfigurationManager.AppSettings["strConn"].ToString().Trim();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (DropDownList1.SelectedValue == "用户")
        {
            Response.Redirect("Login.aspx");
           }


        else if (DropDownList1.SelectedValue == "管理员")
        {
            Response.Redirect("yglogin.aspx");
        }
    }
    protected void Button2_Click1(object sender, EventArgs e)
    {
        if (DropDownList1.SelectedValue == "用户")
        {
            Response.Redirect("khregister.aspx");
        }


        else if (DropDownList1.SelectedValue == "管理员")
        {
            Response.Redirect("ygregister.aspx");
        }
    }
}
